Ext.namespace("org.microsite.database");

Database.prototype.getType = function() {return 'Database';};

org.microsite.util.ViewRegistry.add(new org.microsite.util.ViewHelper({
    type : Database,
    service : DatabaseRemote,
    editor : org.microsite.database.DatabaseEditor,
    template : new Ext.XTemplate('<table border="0" cellspacing="5">',
            '<tr><td><b>Name</b></td><td>{name}</td></tr>',
            '<tr><td><b>Description</b></td><td>{description}</td></tr>',
            '<tr><td><b>Server</b></td><td>{server}</td></tr>',
            '<tr><td><b>Admin</b></td><td>{admin}</td></tr>',
            '</table>'),
    fields : [{name:'id'},{name:'name'},{name:'description'},{name:'server'},{name:'admin'}]
}));
